<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    request.setAttribute("basePath", request.getContextPath());
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script src="${basePath}/resources/jquery/jquery-1.6.4.min.js"></script>
    <script type="text/javascript">
        var basepath = '${basePath}';
        var holidays = $.parseJSON('${holidays}');
        $(function(){
           $("#calMainDiv").height($("#frmright",parent.document).height());
        });
    </script>
    <link rel="stylesheet" href="${basePath}/resources/css/xl.css"/>
    <title>节假日设置</title>
</head>
<body>
<div style="height: 500px;overflow-y: auto;" id="calMainDiv">
    <form action="${basePath}/s/h/i">
        <div class="titleDiv">
            <select id="nd" name="nd" onchange="document.forms[0].submit();">
                <option value="2015">2015</option>
                <option value="2016" <c:if test="${nd=='2016'}"> selected="selected" </c:if>>2016</option>
                <option value="2017" <c:if test="${nd=='2017'}"> selected="selected" </c:if>>2017</option>
                <option value="2018" <c:if test="${nd=='2018'}"> selected="selected" </c:if>>2018</option>
                <option value="2019" <c:if test="${nd=='2019'}"> selected="selected" </c:if>>2019</option>
                <option value="2020" <c:if test="${nd=='2020'}"> selected="selected" </c:if>>2020</option>
                <option value="2021" <c:if test="${nd=='2021'}"> selected="selected" </c:if>>2021</option>
                <option value="2022" <c:if test="${nd=='2022'}"> selected="selected" </c:if>>2022</option>
                <option value="2023" <c:if test="${nd=='2023'}"> selected="selected" </c:if>>2023</option>
                <option value="2024" <c:if test="${nd=='2024'}"> selected="selected" </c:if>>2024</option>
                <option value="2025" <c:if test="${nd=='2025'}"> selected="selected" </c:if>>2025</option>
                <option value="2026" <c:if test="${nd=='2026'}"> selected="selected" </c:if>>2026</option>
            </select>&nbsp;年
        </div>
    </form>
    <input type="hidden" id="ksrq" value="${ksrq}"/>
    <input type="hidden" id="jsrq" value="${jsrq}"/>

    <div class="tip">提示：点击日期添加 / 删除假期，<font color="springgreen"> ██ </font>背景为假期</div>
    <div id="cal">
        <div id="top">
            公元<select></select><select></select><span></span><span></span>
        </div>
        <ul id="wk">
            <li>月份</li>
            <li>一</li>
            <li>二</li>
            <li>三</li>
            <li>四</li>
            <li>五</li>
            <li><b>六</b></li>
            <li><b>日</b></li>
        </ul>
        <div id="cm"></div>
    </div>
    <script src="${basePath}/resources/js/cal.js"></script>
    <script type="text/javascript">document.getElementById("top").style.display = "none";</script>
</div>
</body>
</html>